<html>
    <head>
        <#include "/${system}/component/html-head.ftl" />
    </head>
    <body>
        <#include "/${system}/component/head.ftl" />
        <div class="admin">
            <div class="aleft" id="left-container"></div>
            <div class="aright">
                <fieldset class="layui-elem-field layui-field-title" style="margin: 20px 30px 20px 20px;">
                    <legend>添加分类</legend>
                </fieldset>
                <form class="layui-form bform" id="content-cnt"></form>
                <script>
                    layui.config({base:'${base}/${system}/js/'}).use('notice-edit');
                </script>
                <script id ="template" type="text/template">
                    <div class="layui-form-item">
                        <label class="layui-form-label">公告内容</label>
                        <div class="layui-input-block">
                            <input type="text" value="{{d.content}}" name="content" required lay-verify="required" placeholder="必填内容" autocomplete="off" class="layui-input">
                        </div>
                    </div>
                    <div class="layui-form-item">
                        <label class="layui-form-label">公告时间</label>
                        <div class="layui-input-inline">
                            <input class="layui-input" value="{{d.start}}" placeholder="开始日" name="start" id="notice-start">
                        </div>
                        <div class="layui-input-inline">
                            <input class="layui-input" value="{{d.end}}" placeholder="截止日" name="end" id="notice-end">
                        </div>
                    </div>
                    <div class="layui-form-item">
                        <label class="layui-form-label">所属类型</label>
                        <div class="layui-input-block">
                            <select name="visible">
                                <option value="1" {{# if(d.visible == 1) { }} selected {{# } }}>使用</option>
                                <option value="0" {{# if(d.visible == 0) { }} selected {{# } }}>停用</option>
                            </select>
                        </div>
                    </div>
                    <input type="hidden"  value="{{d.id}}" name="id"/>
                    <div class="layui-form-item">
                        <div class="layui-input-block">
                            <button class="layui-btn" lay-submit lay-filter="formDemo">立即提交</button>
                            <button class="layui-btn layui-btn-primary" onclick="history.go(-1)">返回</button>
                        </div>
                    </div>
                </script>
            </div>
        </div>
    </body>
</html>